package com.example.demo.controller

import com.example.demo.repo.KindRepo
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class KindController {

    @Autowired
    private lateinit var kindRepo: KindRepo

    @GetMapping("/kind")
    fun getKind() = kindRepo.findAll()

}